import request from '@/utils/request'

// 查询部门人员信息表列表
export function listBumenrenyuanxinxi(query) {
  return request({
    url: '/system/bumenrenyuanxinxi/list',
    method: 'get',
    params: query
  })
}

// 查询部门人员信息表详细
export function getBumenrenyuanxinxi(organizationName) {
  return request({
    url: '/system/bumenrenyuanxinxi/' + organizationName,
    method: 'get'
  })
}

// 新增部门人员信息表
export function addBumenrenyuanxinxi(data) {
  return request({
    url: '/system/bumenrenyuanxinxi',
    method: 'post',
    data: data
  })
}

// 修改部门人员信息表
export function updateBumenrenyuanxinxi(data) {
  return request({
    url: '/system/bumenrenyuanxinxi',
    method: 'put',
    data: data
  })
}

// 删除部门人员信息表
export function delBumenrenyuanxinxi(organizationName) {
  return request({
    url: '/system/bumenrenyuanxinxi/' + organizationName,
    method: 'delete'
  })
}
